package com.gxar.quick.ar.server.db.model;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

/**
 * 兑换品作品
 *
 * @author linsy
 * @version 1.0
 * @created 2024/2/18 09:54
 */
@Entity
@Getter
@Setter
@NoArgsConstructor
@Table(name = "exchange_item_works")
@IdClass(ExchangeItemWorksPK.class)
public class ExchangeItemWorksEntity {

    /**
     * 兑换品码
     */
    @Id
    private String code;
    /**
     * 作品ID
     */
    @Id
    private Long worksId;

}
